# list1 = {1, 2, 3}
# it = iter(list1)
# print(next(it))
# print(next(it))
# print(next(it))
# print(next(it))     # except


# for i in range(10, 20, 2):
#     print(i)


# for i in range(10, 20, 0.5):
#     print(i)   # TypeError: 'float' object cannot be interpreted as an integer

def frange(start, stop, step):
    x = start
    while x < stop:
        yield x
        x += step


for i in frange(10, 20, 0.5):
    print(i)
